package com.hqyj.dao;

import com.hqyj.pojo.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //查询
    List<User> select();
    //登录
    User login(String Username);
    //查询 用户名拥有的角色参数
    List<String> selectRole(String Username);

    List<User> selectTeacherList(Integer rId);

    List<User> selectTeacher();
}